package com.ruoyi.datastatistics.mapper;

import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.basedata.domain.UsersXb;
import com.ruoyi.basedata.domain.vo.UserTerminalsVO;
import com.ruoyi.datastatistics.domain.PublicShareUserJoin;
import org.apache.ibatis.annotations.Param;

/**
 * 公摊用户关联Mapper接口
 *
 * @author gdqt
 * @date 2025-05-13
 */
public interface PublicShareUserJoinMapper extends BaseMapper<PublicShareUserJoin>
{

    List<PublicShareUserJoin> selectListWithUser(PublicShareUserJoin publicShareUserJoin);
    List<PublicShareUserJoin> selectListWithUser2(PublicShareUserJoin publicShareUserJoin);

    List<UsersXb> getUserPageForGJ(PublicShareUserJoin publicShareUserJoin);
    List<Map<String, Object>> getUserPageForGJProduct(PublicShareUserJoin publicShareUserJoin);

    List<UserTerminalsVO> getUserTerminalsForGj(@Param("userIds") List<String> userIds);

    int cloneinsert(@Param("oldUserId")String oldUserId, @Param("newUserId")String newUserId);
    void deletePublicShareUserJoinByUser( @Param("userId")String userId);
}
